import Nerv from 'nervjs'
import Taro from "@tarojs/taro-h5";
export default class Parse2Html extends Taro.Component {
  render() {
      const { nodes } = this.props
      if (typeof nodes.tpl !== 'string' || !nodes.tpl ) return null
      return (
          <div
              style={{
                  padding: '12px',
                  fontSize: '14px'
              }}
              dangerouslySetInnerHTML={{
                  __html: nodes.tpl
              }}></div>
      )
  }
}
